package com.example.ustoreui;

import com.vaadin.ui.Table;

@SuppressWarnings("serial")
public class FileList extends Table {

	public FileList() {
		super();
		setSizeFull();

		setVisibleColumns(FileContainer.NATURAL_COL_ORDER);
		setColumnHeaders(FileContainer.COL_HEADERS);
	}

	public FileList(String caption) {
		super(caption);
	}

	public FileList(Home app) {
		setSizeFull();
		setContainerDataSource(app.getDataSource());

		setVisibleColumns(FileContainer.NATURAL_COL_ORDER);
		setColumnHeaders(FileContainer.COL_HEADERS);
	}
}
